﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JCFramework.Robot
{
    public class ThiefRobot : RobotBase<int>
    {

        public override void Do()
        {
            if (this.Doing != null) this.Doing(this, new RobotEventHandler(this.Name));
            //Try to do
            Console.WriteLine("I'm {0}, Id is {1}, Thief is over", this.Name, this.Id);

            if (this.Done != null) this.Done(this, new RobotEventHandler(this.Name));
        }

        public override event EventHandler<RobotEventHandler> Doing;

        public override event EventHandler<RobotEventHandler> Done;
    }
}
